<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
    <title>cart</title>
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/cart.css">
</head>

<body>
    <!--头部-->
    <div id="app">
        <header id="header">
            <a href="javascript:;" class="icon_back"></a>
            <p>购物车</p>
            <a href="javascript:;" class="icon_menu"></a>
        </header>

        <!--安全提示-->
        <div id="safe_type">
            <span>你正在安全环境购物中,请放心购物</span>
        </div>
        <!--订单列表-->
        <div id="orderList">
            <section class="order">
                <div class="title">
                    <span class="checkBox" style="visibility: hidden;opacity: 0;"></span>
                    <img src="images/cart/buy-logo.png">
                    <span>京东自营</span>
                    <span>您享受满99元免运费服务</span>
                </div>
                <ul>
                    <li v-for="shop in shopListArr">
                        <div class="left">
                            <span class="checkBox" :checked="shop.checked" @click="singerShopSelect(shop)"></span>
                        </div>
                        <div class="right">
                            <a href=""><img :src="shop.shopImg" alt=""></a>
                            <div class="description">
                                <p>{{shop.shopName}}</p>
                                <span>&yen;{{shop.shopPrice * shop.shopNum}}</span>
                                <div class="description_bottom">
                                    <div class="number">
                                        <span @click="subShop(shop,false)"> - </span>
                                        <input type="number" :value="shop.shopNum" v-model="shop.shopNum">
                                        <span @click="subShop(shop,true)"> + </span>
                                    </div>
                                    <div class="delete" @click="deletShop(shop)">
                                        <span></span>
                                        <span></span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </section>
            <div class="shop-total">
                <div class="total-l">
                    <span class="checkBox" :checked='isSelectAll' style="margin-top: 15px;" @click="selctAll(isSelectAll)"></span>
                    <p style="line-height: 50px;margin-left: 30px;">全选 </p>
                </div>
                <div class="total-r">
                    <p>总计：<span>¥{{totalPrice}}</span></p>
                    <a href="#" class="total-btn" @click="total_go()">去结算</a>
                </div>
            </div>
        </div>

        <!--弹出层-->
        <div class="panel" :class="{'panel-Show':isHideJump}">
            <div class="panelBox clearfix jump">
                <span>你确认要删除这个商品吗？</span>
                <button @click="isHideJump=false">取消</button>
                <button @click="deletShopOK()">确定</button>
            </div>
        </div>
    </div>
    <!--<script src="js/base.js"></script>-->
    <!--<script src="js/cart.js"></script>-->
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <script src="https://unpkg.com/vue-router@2.0.0/dist/vue-router.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue-resource@1.3.6"></script>
    <script type="text/javascript" src="shopCart.js"></script>
</body>

</html>